package com.takanafu.haru.code{
	import com.takanafu.haru.code.CodeBase;
	
	public class CodeString extends CodeBase{
		private var str:String;
		
		public function CodeString(string:String){
			this.str = string;
		}
		
		public function getString():String{
			return this.str;
		}
		override public function toString():String{
			return str;
		}
		override public function add(code:CodeBase):CodeBase{
			var s:CodeString = code as CodeString;
			
			return new CodeString(str + s.str);
		}
	}
}